package com.scgl.sheet.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scgl.sheet.mapper.ScglBasicMapper;
import com.scgl.sheet.domain.ScglBasic;
import com.scgl.sheet.service.IScglBasicService;

/**
 * 基础信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-30
 */
@Service
public class ScglBasicServiceImpl implements IScglBasicService 
{
    @Autowired
    private ScglBasicMapper scglBasicMapper;

    /**
     * 查询基础信息
     * 
     * @param worko 基础信息主键
     * @return 基础信息
     */
    @Override
    public ScglBasic selectScglBasicByWorko(String worko)
    {
        return scglBasicMapper.selectScglBasicByWorko(worko);
    }

    /**
     * 查询基础信息列表
     * 
     * @param scglBasic 基础信息
     * @return 基础信息
     */
    @Override
    public List<ScglBasic> selectScglBasicList(ScglBasic scglBasic)
    {
        return scglBasicMapper.selectScglBasicList(scglBasic);
    }

    /**
     * 新增基础信息
     * 
     * @param scglBasic 基础信息
     * @return 结果
     */
    @Override
    public int insertScglBasic(ScglBasic scglBasic)
    {
        return scglBasicMapper.insertScglBasic(scglBasic);
    }

    /**
     * 修改基础信息
     * 
     * @param scglBasic 基础信息
     * @return 结果
     */
    @Override
    public int updateScglBasic(ScglBasic scglBasic)
    {
        return scglBasicMapper.updateScglBasic(scglBasic);
    }

    /**
     * 批量删除基础信息
     * 
     * @param workos 需要删除的基础信息主键
     * @return 结果
     */
    @Override
    public int deleteScglBasicByWorkos(String[] workos)
    {
        return scglBasicMapper.deleteScglBasicByWorkos(workos);
    }

    /**
     * 删除基础信息信息
     * 
     * @param worko 基础信息主键
     * @return 结果
     */
    @Override
    public int deleteScglBasicByWorko(String worko)
    {
        return scglBasicMapper.deleteScglBasicByWorko(worko);
    }
}
